<?php

use Welcomescreen\Agavi\View;

class Backend_Visits_UploadFileSuccessView extends View\BackendBaseView {
	/**
	 * @parameter  AgaviRequestDataHolder $rd
	 * @return     mixed
	 */
	public function executeJson(AgaviRequestDataHolder $rd) {
		return sprintf('<textarea>%s</textarea>', 
			json_encode(array(
				'status' => 'success',
				'path' => $this->getContext()->getRouting()->gen('deliver.upload', array('file' => $this->getAttribute('fileName')))
		)));
	}
}

?>